package com.zhang.genericdemo.request.impl;

import com.zhang.genericdemo.request.BaseRequest;
import com.zhang.genericdemo.response.impl.ResponseA;
import lombok.EqualsAndHashCode;

/**
 * @Author: ZhangGongMing
 * @CreateTime: 2025/4/25 09:15
 * @Description:
 * @Version: 1.0
 */
@EqualsAndHashCode(callSuper = true)
public class RequestA extends BaseRequest<ResponseA> {

    // RequestA 中可以有自己的属性
    private String name;

    private Integer age;

    public RequestA() {
    }

    @Override
    public Class<ResponseA> getResponseType() {
        return ResponseA.class;
    }

    public RequestA(String method, String name, Integer age) {
        super(method);
        this.name = name;
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

